home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Games / Xconq 7.1.0 / src / xconq-7.1.0 / test / sym-diff.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1996-07-07  |  600 b   |  16 lines  |  [TEXT/R*ch]

  1. #!/bin/sh
  2.  
  3. # This script extracts and compares the symbols defined in the manual
  4. # to those defined in the source code.
  5.  
  6. grep DEF_ $1/../kernel/*.def | grep -v DEF_CMD | sed -e 's/^[^"]*"\([^ ]*\)".*$/\1/' | grep -v '^zz-' | sort | uniq >src.syms
  7.  
  8. grep '@deffn' $1/../doc/refman.texi | grep '@code' | sed -e 's/^.*@code{\([^{ }]*\)}.*$/\1/' | sed -e 's/@@/@/' | grep -v '^zz-' | sort | uniq >doc.syms
  9.  
  10. echo "Differences between symbols in reference manual and in source code:"
  11. echo "('<' - in documentation,  '>' - in sources)"
  12.  
  13. diff -w doc.syms  src.syms | grep -v '^[0-9]' | grep -v '^---'
  14.  
  15. exit 0
  16.